<?php

namespace app\index\controller;

use app\index\model\Config as ConfigModel;
use app\index\model\Healthy;
use think\Controller;
use think\Request;
use app\index\model\Banner as BannerModel;

class About extends BaseController
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $banner = BannerModel::getBanner('about');
        $action = $request->action();
        $this->assign('banner', $banner);
        $this->assign('action', $action);
    }

    /**
     * 关于我们
     */
    public function brand()
    {
        //品牌介绍
        $intro = ConfigModel::getBaseValue('about_intro');
        $this->assign('intro', $intro);
        //品牌历程
        $history = Healthy::getLists();
//        $history = ConfigModel::getBaseValue('about_history');
        $this->assign('history', $history);
        //品牌理念
        $idea = ConfigModel::getBaseValue('about_idea');
        $this->assign('idea', $idea);
        return $this->fetch("about-brand");
    }


}
